package cn.org.donald.framework.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author ： Donald
 * @date ： 2020/10/25 00:12
 * @description：
 */
@Configuration
@ConfigurationProperties(prefix = "donald.captcha",ignoreInvalidFields = true)
public class CaptchaProperties {

    private int validity = 1800;

    private Boolean enable = true;

    public int getValidity() {
        return validity;
    }

    public void setValidity(int validity) {
        this.validity = validity;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }
}
